//导师指导项目的接口
import request from '@/utils/request'

//修改第一指导老师
export const updateProjectHostInstructorApi = (projectId,instructorId) => {
    return request({
        url: `/project/instructor/${projectId}/${instructorId}`,
        method: "put",
    })
}

//根据项目id获取第一指导老师
export const getHostInstructorByProjectIdApi = projectId => {
    return request({
        url: `/project/instructor/${projectId}`,
        method:"get",
    })
}

//邀请第二指导老师
export const createProjectInstructorApi = (projectId,instructorId) => {
    return request({
        url: `/project/instructor/other/${projectId}/${instructorId}`,
        method: "post",
    })
}

//获取指导项目的第二指导老师
export const getInvolveProjectInstructorApi = projectId => {
    return request({
        url: `/project/instructor/other/${projectId}`,
        method: "get",
    })
}

//删除第二指导老师
export const deleteProjectInstructorApi = (projectId,instructorId) => {
    return request({
        url: `/project/instructor/${projectId}/${instructorId}`,
        method: "delete",
    })
}